package com.example.forum.dao;

import com.example.forum.model.ArticleReply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleReplyMapper {
    int insert(ArticleReply articleReply);

    int insertSelective(ArticleReply articleReply);

    ArticleReply selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ArticleReply articleReply);

    int updateByPrimaryKey(ArticleReply articleReply);

    /**
     * Created by hanzishuai on 2025/4/12
     * @param articleId 帖子 Id
     * @return java.util.List<com.example.forum.model.ArticleReply>
     * @Description         根据帖子 Id 查询所有的列表
     */
    List<ArticleReply> selectByArticleId(@Param("articleId") Long articleId);

}


































